:root {
    /* Dark theme (default) */
    --bg-color: #1a1b26;
    --text-color: #a9b1d6;
    --heading-color: #7aa2f7;
    --link-color: #bb9af7;
    --code-bg: #24283b;
    --content-bg: #1f2335;
    --toggle-bg: #24283b;
    --toggle-circle: #7aa2f7;
    --code-text: #a9b1d6;
    --card-bg: #24283b;
    --card-text: #a9b1d6;
    --nav-hover: #24283b;
    --nav-active: #24283b;
}

/* Light theme */
:root[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333333;
    --heading-color: #2563eb;
    --link-color: #7c3aed;
    --code-bg: #1a1b26;
    --content-bg: #ffffff;
    --toggle-bg: #e5e7eb;
    --toggle-circle: #2563eb;
    --code-text: #e4e4e7;
    --card-bg: #ffffff;
    --card-text: #333333;
    --nav-hover: #f0f0f0;
    --nav-active: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

header {
    margin-bottom: 2rem;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 1em;
}

h1 {
    font-size: 2.5em;
    margin-top: 0;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

.content {
    background: var(--content-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

/* Code blocks */
pre {
    background: var(--code-bg);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    color: var(--code-text);
}

code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
    color: var(--code-text);
}

/* Inline code */
:not(pre) > code {
    background: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
}

/* Paragraphs */
p {
    margin: 1.5rem 0;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
    background: var(--content-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-top: 0;
    font-size: 1.2em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--heading-color);
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav li {
    margin: 0.8rem 0;
}

.sidebar nav a {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    color: var(--text-color);
}

.sidebar nav a:hover {
    background: var(--nav-hover);
    opacity: 1;
}

.sidebar nav a.active {
    background: var(--nav-active);
    color: var(--heading-color);
    font-weight: 500;
}

/* Main Content */
main {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: auto;
        position: static;
    }
} 

/* Guide Cards */
.guide-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.guide-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.guide-card:hover {
    transform: translateY(-2px);
}

.guide-card h3 {
    margin-top: 0;
    color: var(--heading-color);
}

.guide-card p {
    margin: 1rem 0;
    opacity: 0.9;
    color: var(--card-text);
}

.guide-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--heading-color);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
}

.guide-link:hover {
    opacity: 0.9;
    transform: translateX(2px);
} 

/* Add theme toggle styles */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 1.5rem;
    border-radius: 1rem;
    background: var(--toggle-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0.125rem;
    transition: all 0.2s;
}

.theme-toggle::before {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--toggle-circle);
    transition: transform 0.2s;
}

:root[data-theme="light"] .theme-toggle::before {
    transform: translateX(1.5rem);
} 